home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / pdisk.zip / RDIOCTL.ASM < prev    next >
Assembly Source File  |  1989-01-12  |  318b  |  25 lines

  1.     .radix    16
  2. %    .MODEL    memmodel,C
  3. ;    .286
  4.     .code
  5. read_ioctl    proc    buffer:ptr byte, drive:word 
  6. If    @DataSize
  7.     push ds
  8.     lds dx,buffer
  9. Else
  10.     mov    dx,buffer
  11. Endif
  12.     mov    bx,drive
  13.     mov    ax,4405
  14.     mov    cx,12        ; somewhat arbitrary
  15.     int    21
  16.     jnc    @F
  17.     neg    ax
  18. @@:
  19. If    @DataSize
  20.     pop ds
  21. Endif
  22.     ret
  23. read_ioctl endp
  24.     end
  25.